/* ========== 基本样式 ========== */
:root {
    --bg: #0f1720;
    --card: #0b1220;
    --muted: #9aa8b2;
    --accent: #28ef01;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-2: rgba(255, 255, 255, 0.02);
    --maxw: 1100px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: var(--sans);
    background: linear-gradient(180deg, #07131a 0%, #06121a 60%);
    color: #e6eef2;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 32px 20px;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
}

/* 左侧导航 */
.toc {
    position: sticky;
    top: 28px;
    align-self: start;
    background: var(--card);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.6);
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.title {
    font-weight: 700;
    font-size: 1.05rem;
}

.subtitle {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
}

.search {
    margin: 12px 0 10px;
}

.search input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--glass);
    color: inherit;
    outline: none;
    box-sizing: border-box;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

nav li {
    margin: 6px 0;
}

nav a {
    text-decoration: none;
    color: var(--muted);
    display: block;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: var(--glass-2);
    color: #e9fff0;
}

nav a.active {
    color: var(--accent);
    font-weight: 600;
}

.utils {
    margin-top: 14px;
    display: flex;
    gap: 8px;
}

/* 右侧内容 */
.card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 6px 28px rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.page-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

h1 {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    color: var(--accent);
}

h1 .h-tag {
    font-size: 0.85rem;
    color: var(--muted);
}

h2 {
    margin-top: 30px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    color: #28ef01;
}

h3 {
    margin-top: 24px;
    color: #7bc4ff;
}

h4 {
    margin: 15px 0;
    color: #a6e3ff;
}

.meta {
    display: flex;
    gap: 12px;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.badge {
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.02);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(40, 239, 1, 0.1);
    border-color: rgba(40, 239, 1, 0.2);
}

/* 图片表格样式 */
.image-tables {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.image-table {
    padding: 20px;
    background: rgba(11, 25, 36, 0.4);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.image-table h4 {
    font-size: 1.1rem;
    color: #28ef01;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(40, 239, 1, 0.3);
}

.table-container {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.table-container img {
    width: 100%;
    border-radius: 8px;
    display: block;
    transition: transform 0.3s ease;
}

.table-container img:hover {
    transform: scale(1.02);
}

.image-desc {
    text-align: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--muted);
}

/* 警告框 */
.warning {
    background: linear-gradient(90deg, rgba(255, 197, 66, 0.05), rgba(255, 197, 66, 0.02));
    padding: 15px;
    border-radius: 8px;
    color: #ffeccd;
    border: 1px solid rgba(255, 197, 66, 0.1);
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 980px) {
    .container {
        grid-template-columns: 1fr;
        padding-bottom: 40px;
    }

    .toc {
        position: static;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    nav a {
        white-space: normal;
    }
    
    .image-tables {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .image-table {
        padding: 15px;
    }
    
    .table-container img {
        border-radius: 6px;
    }
}

/* 打印样式 */
@media print {
    body {
        background: white;
        color: black;
        padding: 0;
    }

    .toc, .utils, .meta, .brand, .search {
        display: none;
    }

    .container {
        max-width: 100%;
        grid-template-columns: 1fr;
    }

    .card {
        box-shadow: none;
        border: none;
        padding: 15px;
    }
    
    .image-table {
        page-break-inside: avoid;
    }
}

/* 左侧品牌logo样式 */
.logo {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1b7a4d, #28ef01);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #02240a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", "Courier New", monospace;
    font-size: 1.2rem;
}

/* 版本节点表格样式 */
.version-schedule {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 15px;
}

.version-schedule th,
.version-schedule td {
    padding: 12px 15px;
    text-align: center;
}

.version-schedule thead {
    background: linear-gradient(to right, #1b7a4d, #28ef01);
}

.version-schedule th {
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.version-schedule tbody tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.03);
}

.version-schedule tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.06);
}

.version-schedule tbody tr:hover {
    background-color: rgba(40, 239, 1, 0.1);
}

.version-schedule td:first-child {
    font-weight: 600;
    color: #a6e3ff;
}

.version-schedule td:last-child {
    color: #7bc4ff;
}